package cn.stylefeng.guns.sys.modular.tao.mapper;

import cn.stylefeng.guns.sys.modular.tao.entity.CouponLead;
import cn.stylefeng.guns.sys.modular.tao.model.params.CouponLeadParam;
import cn.stylefeng.guns.sys.modular.tao.model.result.CouponLeadResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 优惠券领取记录表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2019-08-21
 */
public interface CouponLeadMapper extends BaseMapper<CouponLead> {

    /**
     * 获取列表
     *
     * @author 
     * @Date 2019-08-21
     */
    List<CouponLeadResult> customList(@Param("paramCondition") CouponLeadParam paramCondition);

    /**
     * 获取map列表
     *
     * @author 
     * @Date 2019-08-21
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") CouponLeadParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author 
     * @Date 2019-08-21
     */
    Page<CouponLeadResult> customPageList(@Param("page") Page page, @Param("paramCondition") CouponLeadParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author 
     * @Date 2019-08-21
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") CouponLeadParam paramCondition);

    /**
     * 删除优惠券
     *
     * @author
     * @Date 2019-08-21
     */
    void deleteCoupon( @Param("paramCondition") CouponLeadParam paramCondition);

    /**
     * 使用优惠券
     *
     * @author
     * @Date 2019-08-21
     */
    void updateCoupon( @Param("paramCondition") CouponLeadParam paramCondition);

    /**
     * 添加优惠券
     *
     * @author
     * @Date 2019-08-21
     */
    void addCoupon( @Param("paramCondition") CouponLeadParam paramCondition);


}
